<template>
	<view class="u-flex u-row-around u-m-b-20">
		<view class="u-flex-col u-row-center">
			<view class="u-tips-color">
				当前车辆
			</view>
			<view class="u-type-primary u-font-34 u-text-center">
				{{totalCars}} 辆
			</view>
		</view>
		<view class="u-flex-col u-row-center">
			<view class="u-tips-color">
				剩余车位
			</view>
			<view class="u-type-success u-font-34 u-text-center">
				{{availableSpaces}} 个
			</view>
		</view>
	</view>
</template>

<script setup>
	const availableSpaces = computed(()=>{
		return $helper.priceFormat($store('user').availableSpaces) 
	})
	const totalCars = computed(()=>{
		return $helper.priceFormat($store('user').totalCars)
	})
</script>

<style>

</style>